<!DOCTYPE html>
<html id="replace-style" lang="zh" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8" />
    <title>故障登记</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="icon" type="image/x-icon" href="/favicon.ico" th:href="@{/favicon.ico}" >
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />

</head>
<body>
<!--头部-->
<header th:replace="common/head" >
</header>
<!-- 页面指向 -->
<div class="page-point bg-white">
    <ul>
        <li>首页</li>
        <li>设备故障</li>
        <li>故障登记</li>
    </ul>
</div>
<!-- 菜单树 -->
<div th:replace="common/left" >
</div>
<!--主体内容-->
<div class="page-container">

    <div class="container-fluid mb-20 clearfix">
        <div class="col-md-12 rlt">
            <h2 class="page-section-title">故障登记列表</h2>
            <ul class="table-tool">
                <li id="register">
                    <span class="icon-list_add" aria-hidden="true"></span>
                    <label>登记</label>
                </li>

                <li id="submit_register">
                    <span class="icon-list_tijiao" aria-hidden="true"></span>
                    <label>提交</label>
                </li>
                <li id="refresh-table">
                    <span class="icon-list_shuaxin" aria-hidden="true"></span>
                    <label>刷新</label>
                </li>


            </ul>
        </div>
    </div>

    <div class="container-fluid table-container">
        <table id="malfunctionTable" >

        </table>
    </div>
</div>

<!--工装保养弹框-->

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" >
    <div class="modal-dialog modal-dialog-big-2" role="document" >
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">故障登记</h4>
            </div>
            <form id="defaultForm" class="form-horizontal" action="">
                <div class="modal-body scroll-style" style="height: 550px">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="col-lg-6">
                                <div class="form-group">
                                    <label class="col-lg-4 control-label form-required-4">状态</label>
                                    <div class="col-lg-8">
                                        <input type="text" class="form-control" value="待提交" disabled id="status"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label  form-required-5">厂区</label>
                                    <div class="col-lg-8">
                                        <input type="text" class="form-control factoryName" disabled />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label  form-required-4">产线</label>
                                    <div class="col-lg-8 ">
                                        <input type="text" class="form-control lineName" disabled />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label  form-required-4">区域</label>
                                    <div class="col-lg-8 ">
                                        <input type="text" class="form-control areaName" disabled />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label  form-required-4">责任人</label>
                                    <div class="col-lg-8 ">
                                        <input type="text" class="form-control dutyUser" disabled />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label form-required form-required-4">是否停机</label>
                                    <div class="col-lg-8 date-frame">
                                        <select class="form-control ifStop" name="ifStop" >
                                            <option value="0" selected>是</option>
                                            <option value="1" selected>否</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label form-required form-required-4">故障标题</label>
                                    <div class="col-lg-8">
                                        <input type="text" class="form-control failureTitle" name="failureTitle" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label form-required form-required-4">故障等级</label>
                                    <div class="col-lg-8 date-frame">
                                        <select class="form-control malfunctionGrade" name="failureLevel" >
                                            <option value="0" selected>高</option>
                                            <option value="1" selected>中</option>
                                            <option value="2" selected>低</option>
                                        </select>
                                    </div>
                                </div>
                            </div>

                            <div class="col-lg-6">
                                <div class="form-group">
                                    <label class="col-lg-4 control-label form-required form-required-4">设备编号</label>
                                    <div class="col-lg-8">
                                        <select  class="form-control queryEquipment" name='equipCode' id="queryEquip">
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label  form-required-3">设备名称</label>
                                    <div class="col-lg-8">
                                        <input type="text" class="form-control equipName" disabled />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label">车间</label>
                                    <div class="col-lg-8">
                                        <input type="text" class="form-control shopName" disabled />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label">使用部门</label>
                                    <div class="col-lg-8">
                                        <input type="text" class="form-control department" disabled />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label form-required form-required-4">报告人</label>
                                    <div class="col-lg-8">
                                        <select  class="form-control reportMan" name="reportMan">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label form-required form-required-4">故障时间</label>
                                    <div class="col-lg-8 date-frame">
                                        <input type="text" class="form-control happenDate" name="happenDate" readonly="readonly"  />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label">选择故障案例</label>
                                    <div class="col-lg-8 date-frame">
                                        <select class="form-control malfunctionDemo" name="malfunctionDemo" >
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-4 control-label form-required form-required-4">故障分类</label>
                                    <div class="col-lg-8">
                                        <select  class="form-control malfunctionType" name="type" >
                                        </select>
                                    </div>
                                </div>
                            </div>

                        </div>

                        <div class="col-lg-12">
                            <div class="form-group">
                                <label class="col-lg-2 control-label " style="width: 160px;">故障详细描述</label>
                                <div class="col-lg-10 input-align-2">
                                    <textarea class="form-control failureDesc" name="failureDesc"></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12">
                            <div class="form-group uploadFile">
                                <label class="col-lg-2 control-label ">文件上传</label>
                                <div class="col-lg-7 ">
                                    <input type="file" id="uploadfile" name="file" />
                                    <input type="hidden" id="uploadfilePath" name="filePath"/>
                                </div>

                            </div>
                            <!-- <div class="error-tips" style="padding-left: 155px;color: red;display:none">请先上传图片</div> -->
                        </div>
                    </div>
                </div>
            </form>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary yes">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<div th:replace="common/foot">
</div>

<script th:src="@{/js/lifeCycle/equipLifeCycle/malfunction/register.js}"></script>
</body>
</html>






